﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using HZT.Framework.Utility;
using HZT.Framework.Web;
using AD.Web.Common;

namespace AD.Web.Areas.Account.Controllers
{
    public class AuthController : ADController
    {
        //
        // GET: /Account/Auth/

        public ActionResult Index()
        {
            return View();
        }
        
        [AuthorizeIgnore]
        public ActionResult Login()
        {
           // return RedirectToAction("Index");
             return View();
        }

        [AuthorizeIgnoreAttribute]
        public ActionResult VerifyImage()
        {
            var s1 = new ValidateCode_Style4();
            string code = "6666";
            byte[] bytes = s1.CreateImage(out code);

            //this.CookieContext.VerifyCode = code;
            Cookie.Save("VerifyCode", code);

            return File(bytes, @"image/jpeg");

        }
    }
}
